<? if (count($this->whiteLabels)): ?>
<table class="table table-striped table-condensed table-hover">
  <thead>
      <tr>
          <th>ID</th>
          <th>Domain</th>
          <th>Iframe Hash</th>
          <th>Actions</th>
      </tr>
  </thead>   
  <tbody>
    <? foreach ($this->whiteLabels as $wl): ?> 
    <tr>
      <td><?= $wl->id ?></td>
      <td><?= $wl->domain ?></td>
      <td><a href="/label/tpl1/<?= $wl->getHash() ?>" target="_blank"><?= $wl->getHash() ?></a></td>
      <td>
	 	<a href="/manage/preview?id=<?= $wl->id ?>" class="btn btn-mini" target="_blank">Preview</a>
	 	<a href="/manage/edit-white-label?edit=<?= $wl->id ?>" class="btn btn-mini btn-primary">Edit</a>
		&nbsp;&nbsp;
	 	<a href="/manage/white-labels?delete=<?= $wl->id ?>" class="btn btn-mini btn-danger">Delete</a>
	  </td>
    </tr>
    <? endforeach; ?> 
  </tbody>
</table>
<? endif; ?>
